package com.sx.domain.dto;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.util.List;

@Data
public class OnLessonClassroomsRspDTO {
    @SerializedName("onLessonClassrooms")
    private List<OnLessonClassroomRspDTO> onLessonClassroomList;
    @SerializedName("upcomingExam")
    private List<UpcomingExam> upcomingExamList;

    @Data
    public static class OnLessonClassroomRspDTO {
        private String classroomId;
        private String classroomName;
        private String courseId;
        private String courseName;
        private String lessonId;
        private int role;
        private boolean openTeacher;
        private String teacherAvatar;
        private boolean clone;
    }

    @Data
    public static class UpcomingExam{
        @SerializedName("classroom_name")
        private String classroomName;
        @SerializedName("user_avatar")
        private String userAvatar;
        @SerializedName("start_time")
        private Long startTime;
        @SerializedName("end_time")
        private Long endTime;
        private String title;
        @SerializedName("classroom_id")
        private Long classroomId;
        private String type;
        private Long id;
    }
}
